//
//  JBWUserRecordInfoCell.m
//  JBWDSK
//
//  Created by 崔志伟 on 2018/8/2.
//  Copyright © 2018年 崔志伟. All rights reserved.
//

#import "JBWUserRecordInfoCell.h"

@implementation JBWUserRecordInfoCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.backgroundColor = [UIColor clearColor];
        self.accountLabel = [[UILabel alloc]initWithFrame:CGRectMake(15, 10, 150, 35)];
        self.accountLabel.font = [UIFont systemFontOfSize:13];
        self.accountLabel.textColor = [UIColor whiteColor];
        self.accountLabel.text = @"账号：18688497608";
        [self.contentView addSubview:self.accountLabel];
        
        self.loginTimeLabel = [[UILabel alloc]initWithFrame:CGRectMake(MAIN_BG_VIEW_WIDTH-150, 10, 150, 35)];
        self.loginTimeLabel.font = [UIFont systemFontOfSize:13];
        self.loginTimeLabel.textColor = [UIColor grayColor];
        self.loginTimeLabel.text = @"上次登录：2018-7-28";
        [self.contentView addSubview:self.loginTimeLabel];
        
        self.loginSectionLabel = [[UILabel alloc]initWithFrame:CGRectMake(15, 45, 150, 35)];
        self.loginSectionLabel.font = [UIFont systemFontOfSize:13];
        self.loginSectionLabel.textColor = [UIColor grayColor];
        self.loginSectionLabel.text = @"上次区服：问侠仙道";
        [self.contentView addSubview:self.loginSectionLabel];
        
        self.switchAccountBtn = [[UIButton alloc]initWithFrame:CGRectMake(MAIN_BG_VIEW_WIDTH-100, 40, 80, 25)];
        self.switchAccountBtn.layer.cornerRadius = 3;
        self.switchAccountBtn.layer.masksToBounds = YES;
        self.switchAccountBtn.backgroundColor = [UIColor grayColor];
        self.switchAccountBtn .titleLabel.font = [UIFont systemFontOfSize:13];
        [self.switchAccountBtn setTitleColor:[UIColor orangeColor] forState:UIControlStateNormal];
        [self.switchAccountBtn setTitle:@"选择账号" forState:UIControlStateNormal];
        [self.contentView addSubview:self.switchAccountBtn];
    }
    return self;
}
@end
